#ifndef 	__CANBOARDLCD_H__
#define		__CANBOARDLCD_H__


#include "def.h"


#define		X_SIZE		84
#define		Y_SIZE		6


#define		X_POS		84
#define		Y_POS		48


#define		CARMAX		10

#ifndef 	_GLOBAL_LCD_
		#define  LCD_EXTERN	extern
#else
		#define  LCD_EXTERN	
#endif

typedef enum
{
	eLcdFontW5H8 = 0,
	eLcdFontW12H24,
	eLcdFontCount
}eFONT_TYPE;
		

typedef enum
{
	eLine0,
	eLine1,
	eLine2,
	eLine3,
	eLine4,
	eLine5
}eLineShow;


typedef enum
{
	eChangeInit = 0,
	eChangeMenu,
	eChangeKeyUp,
	eChangeKeyMakeSure,
	eChangeKeyMakeSureUp
}enumChange;

typedef struct
{
	BYTE carNum;
	char carName[12];
	BYTE nameLen;
}T_SHOWCAR_INFO;

typedef struct
{
	BYTE XXX;
	BOOL bChangeCarType;
	BOOL bChangeKeyStatus;
	BYTE Turn1upCnt;
	BYTE Turn1downCnt;
	
	BYTE Turn2upCnt;
	BYTE Turn2downCnt;
	
	BYTE showMenuCnt;
	BYTE preShowMenuCnt;
	BYTE showMenuMax;
 	
	BYTE showMaxLen;
	
	BYTE arrowPos;
	BYTE preArrowPos;
	BYTE arrowMax;
	
	BYTE showCarCnt;
	
	BYTE changeStatus;
	UINT32 changeCarTypeDelayTimer;	
	T_SHOWCAR_INFO showCarInfo[CARMAX];
}T_LDC_INFO;






LCD_EXTERN T_LDC_INFO lcdInfo;

LCD_EXTERN void canBoardLcdInit(void);
LCD_EXTERN void canBoardLcdProc(void);
LCD_EXTERN void ipcEventProccanBoardLcd(ULONG enumWhatEvent,ULONG lPara,BYTE *p,uint8_t length);













#endif






